<{foreach from=$survey.questions item="ques"}>
    <p><{$ques.question}></p>

    <{if $ques.type == 1}>
        <{foreach from=$ques.options item="op"}>
            <p>
                <input type="radio" name="question_<{$ques.id}>" value="<{$op.id}>">
                <{$op.answer}>
            </p>
        <{/foreach}>
    <{elseif $ques.type == 2}>
        <{foreach from=$ques.options item="op"}>
            </p>
                <input type="checkbox" name="question_<{$ques.id}>[]" value="<{$op.id}>">
                <{$op.answer}>
            </p>
        <{/foreach}>
    <{else}>
        <textarea name="question_<{$ques.id}>"></textarea>    
    <{/if}>

    <hr/>
<{/foreach}>
